<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<base href="<%=basePath%>" />
<%@ taglib prefix="s" uri="/struts-tags"%>
<title>Ph.D Bible - Papers</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="img/Envision.css" type="text/css" />
</head>
<body>
	<div id="wrap">
		<div id="header">
			<h1 id="logo-text">Ph.D Bible</h1>
			<h2 id="slogan">a little step a day, keep you nearer to your
				target</h2>
			<div id="header-links">
				<p>
					<a href="listPaper.do">Home</a> | <a href="listPaper.do">Contact</a>
				</p>
			</div>
		</div>
		<div id="menu">
			<ul>
				<li id="current"><a href="listPaper.do">Papers</a></li>
				<li><a href="listSentence.do">Sentences</a></li>
				<li><a href="listOpinion.do">Opinions</a></li>
				<li class="last"><a href="listPaper.do">About</a></li>
			</ul>
		</div>
		<div id="content-wrap">
			<div id="sidebar">
						<form action="searchOpinion.do" method="post">
			<h1>Opinion&nbsp;&nbsp;&nbsp;<input name="search" class="button" value="search" type="submit" /></h1>
							<ul class="sidemenu">
						<li><strong>Type</strong>
						<select name="opinionTypeId">
								<option value="0">all</option>
								<s:iterator value="opinionTypes">
									<s:if test="id==opinionTypeId">
										<option value="${id}" selected="selected">
											<s:property value="name" />
										</option>
									</s:if>
									<s:else>
										<option value="${id}">
											<s:property value="name" />
										</option>
									</s:else>

								</s:iterator>
							</select>
							</li>
							
							<li><a href="#TemplateInfo"><strong>Keyword</strong></a><s:textfield name="keyword" theme="simple" class="textbox"/></li>
</ul>			
</form>
			
							
				<h1>Note</h1>
				<div class="left-box">
					<p>You can put opinion information into your paper lab by
						filling in the above form.</p>
				</div>
			</div>

			<div id="main">
				<a name="TemplateInfo"></a>

				<s:if test="opinions.size > 0">
					<s:iterator value="opinions">
						<h1>
							[
							<s:property value="opinionType.name" />
							]
						</h1>
						<s:property value="text" />
						<br />
					</s:iterator>
				</s:if>

				<br />
				<s:if test="curPage!=1">
					<a href="listPaper.do?curPage=1&pageSize=${pageSize}">home</a>
				</s:if>
				<s:if test="curPage-3>0&&curPage<=totalPage">
					<a href="listPaper.do?curPage=${curPage-3}&pageSize=${pageSize}"><s:property
							value="curPage-3" /></a>
				</s:if>
				<s:if test="curPage-2>0&&curPage<=totalPage">
					<a href="listPaper.do?curPage=${curPage-2}&pageSize=${pageSize}"><s:property
							value="curPage-2" /></a>
				</s:if>
				<s:if test="curPage-1>0&&curPage<=totalPage">
					<a href="listPaper.do?curPage=${curPage-1}&pageSize=${pageSize}"><s:property
							value="curPage-1" /></a>
				</s:if>
				<s:property value="curPage" />
				<s:if test="curPage+1>0&&curPage+1<=totalPage">
					<a href="listPaper.do?curPage=${curPage+1}&pageSize=${pageSize}"><s:property
							value="curPage+1" /></a>
				</s:if>
				<s:if test="curPage+2>0&&curPage+2<=totalPage">
					<a href="listPaper.do?curPage=${curPage+2}&pageSize=${pageSize}"><s:property
							value="curPage+2" /></a>
				</s:if>
				<s:if test="curPage+3>0&&curPage+3<=totalPage">
					<a href="listPaper.do?curPage=${curPage+3}&pageSize=${pageSize}"><s:property
							value="curPage+3" /></a>
				</s:if>
				<a href="listPaper.do?curPage=${totalPage}&pageSize=${pageSize}">end</a>
				&nbsp;&nbsp;&nbsp;&nbsp;Total Pages:
				<s:property value="totalPage" />
			</div>
		</div>
		<div id="footer">
			<p>
				&copy; 2012 <strong>Paper Bible</strong> | Design by: <a
					href="http://www.styleshout.com/">styleshout</a> | Valid <a
					href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a
					href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="listPaper.do">Home</a>&nbsp;|&nbsp;
				<a href="http://www.free-css.com/">Sitemap</a>&nbsp;|&nbsp;
			</p>
		</div>
	</div>
</body>
</html>
